package com.stargazer.ming.ui;

import com.stargazer.ming.R;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

public class DisplayCoverUI extends MingActivity {
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		initView();
	}

	@Override
	protected void initView() {
		setMingTitle(R.string.display);
		// title button
		setPrevBtn(getString(R.string.market), new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();
			}
		});
		setNextBtn(getString(R.string.edit), new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				startActivity(new Intent(DisplayCoverUI.this, EditMingPostUI.class));
			}
		});
		
		ImageView imageView = (ImageView) findViewById(R.id.imageView1);
		int imageId = getIntent().getIntExtra(ConstantsUI.IMAGE_ID, 0);
		if (imageId != 0) {
			imageView.setImageResource(imageId);
		}
	}

	@Override
	protected int getBodyId() {
		return R.layout.activity_crop_image_ui;
	}

}
